export default () => {
    return {
        submitText: '修改',
        size: 'default',
        labelWidth: 160,
        index: true,
        page: true,
        align: "center",
        menuType: 'menu',
        menuAlign: 'center',
        menuPosition: "right",
        editBtn: true,
        addBtn: false,
        column: [
            {
                label: '数据表id',
                span: 24,
                prop: 'tableId',
                showColumn: false,
                addDisplay: false,
                editDetail: true,
                rules: [{
                    required: true,
                    message: "请输入名称",
                    trigger: "blur"
                }]
            },
            {
                label: '有效时长（天）',
                prop: 'effectiveTimeDay',
                span: 24,
                type: "radio",
                button: true,
                value: 1,
                dicData: [
                    {label: "1天", value: 1},
                    {label: "3天", value: 3},
                    {label: "7天", value: 7},
                    {label: "永久", value: -1},
                ],
                rules: [{
                    required: true,
                    message: "请选择有效时长",
                    trigger: "blur"
                }]
            },

            {
                label: '访问地址',
                span: 12,
                prop: 'url',
                type: 'url',
                value: 0,
                overHidden: true,
                editDetail: true,
                addDisabled: true,
            },
            {
                label: '提取码',
                span: 24,
                prop: 'pwd',
                maxlength: 6,
                minlength: 6,
                rules: [{
                    required: false,
                    message: "请输入提取码",
                    trigger: "blur"
                }]
            },
            {
                label: '有效状态',
                span: 12,
                prop: 'effectiveState',
                type: 'radio',
                value: 1,
                rules: [{
                    required: true,
                    message: "请选择有效状态",
                    trigger: "blur"
                }],
                dicData: [
                    {label: "无效", value: 0},
                    {label: "有效", value: 1},
                ]
            },
        ]
    }
}
